import React from 'react';
import { Button } from 'antd';
import { ActionButtonsProps } from '../types';
import styles from './index.less';

const ActionButtons: React.FC<ActionButtonsProps> = ({ 
  onClose, 
  onSave, 
  onSubmit, 
  loading 
}) => {
  return (
    <>
      <Button 
        className={`${styles['btn']} ${styles['btn-default']}`} 
        onClick={onClose}
        disabled={loading}
      >
        关闭
      </Button>
      <Button 
        className={`${styles['btn']} ${styles['btn-default']}`} 
        onClick={onSave}
        disabled={loading}
      >
        保存
      </Button>
      <Button 
        className={`${styles['btn']} ${styles['btn-primary']}`} 
        onClick={onSubmit}
        disabled={loading}
      >
        送审
      </Button>
    </>
  );
};

export default ActionButtons; 